package com.stylefeng.guns.rest.modular.App.dao;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.rest.modular.App.model.TaskReleaseReason;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 任务拒绝原因字典表 Mapper 接口 
 * @author 张亚林
 * @Date 2018-11-12 17:15
 */
@Mapper
public interface TaskReleaseReasonMapper extends BaseMapper<TaskReleaseReason> {
    /**
     * 删除任务拒绝原因字典表
     * @param  taskReleaseReason
     * @return    
     */
    int deleteTaskReleaseReason(TaskReleaseReason taskReleaseReason)throws Exception;
    /**
     * 批量任务拒绝原因字典表
     * @param ids 主键id数组
     * @return     
     */
    int deleteBatchTaskReleaseReason(String[] ids)throws Exception;
    /**
     * 查询任务拒绝原因字典表列表
     * @param taskReleaseReason 任务拒绝原因字典表对象
     * @return      
     */
    List<TaskReleaseReason> selectListTaskReleaseReason(TaskReleaseReason taskReleaseReason)throws Exception;
    /**
     * 分页查询任务拒绝原因字典表列表
     * @param page  分页对象
     * @param taskReleaseReason 系统操作对象
     * @return
     * @Date 2018-10-02
     */
    List<TaskReleaseReason> selectListTaskReleaseReason(Page page, TaskReleaseReason taskReleaseReason)throws Exception;


    /**
     * 同一个事务 互斥锁查询
     * @param taskReleaseReason 系统操作对象
     * @return     
     */
    List<TaskReleaseReason> selectListTaskReleaseReasonForUpdate(TaskReleaseReason taskReleaseReason)throws Exception;
    /**
     * 通过主键ID查询任务拒绝原因字典表对象
     * @param id 主键id
     * @return    
     */
    TaskReleaseReason findTaskReleaseReasonById(String id)throws Exception;

    /**
     * 插入任务拒绝原因字典表
     * @param taskReleaseReason
     * @return   
     */
    int insertTaskReleaseReason(TaskReleaseReason taskReleaseReason) throws Exception ;
    /**
     * 更新任务拒绝原因字典表
     * @param taskReleaseReason
     * @return     
     */
    int updateTaskReleaseReason(TaskReleaseReason taskReleaseReason) throws Exception ;


}
